Skip to content

chore(workflows): pin agent skills updates to the latest plugin release - #33

Merged
mwbrooks merged 2 commits into
mainfrom
mwbrooks-agent-skills-release-tag
Nov 30, 2026
Merged

mwbrooks merged 2 commits into
mainfrom
mwbrooks-agent-skills-release-tag

Conversation

@mwbrooks

Copy link
Copy Markdown
Member

Summary

This pull request pins the daily agent skills update to the latest Slack MCP and Skills Plugin release instead of the plugin's main branch, so developers and maintainers get skills that have shipped in a release, not work in progress. It matches bolt-js-starter-template#198.

  • Each run reads the latest release tag and installs slackapi/slack-skills-plugin#<tag>, which skills-lock.json records as ref.
  • The update pull request title names the release, such as chore: update agent skills to v1.9.0, and its body links the release notes.
  • The update command in AGENTS.md installs from a release tag too, so a manual update and the next daily run agree.
  • A release that changes no skills opens no pull request.

Testing

  • v1.9.0 matches the plugin's main, so the first run after merge rolls no skills back.
  • The same change on bolt-js-starter-template ran on main, resolved v1.9.0, and opened no pull request.

@mwbrooks mwbrooks added the enhancement New feature or request label Nov 27, 2026
@mwbrooks mwbrooks self-assigned this Nov 27, 2026
@mwbrooks
mwbrooks marked this pull request as ready for review November 27, 2026 23:42
@mwbrooks
mwbrooks requested a review from a team as a code owner November 27, 2026 23:42

@WilliamBergamin WilliamBergamin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📦 Thanks @mwbrooks! Pinning to a release tag and ignoring ref in the lock-only check means a no-op release opens no PR, which I confirmed locally on v1.9.0.
One blocking comment on where GH_TOKEN lives, same as the other ports in this rollout 🙏

Comment thread .github/workflows/agent-skills.yml Outdated
Comment on lines +22 to +32
- name: Update the skills in each skills-lock.json to the latest release
id: skills
env:
GH_TOKEN: ${{ github.token }}
run: |
tag="$(gh release view --repo slackapi/slack-skills-plugin --json tagName --jq .tagName)"
echo "tag=$tag" >> "$GITHUB_OUTPUT"
while IFS= read -r lock; do
(
cd "$(dirname "$lock")"
npx --yes skills@1 add slackapi/slack-skills-plugin --skill '*' --agent universal --agent claude-code --copy --yes < /dev/null
npx --yes skills@1 add "slackapi/slack-skills-plugin#$tag" --skill '*' --agent universal --agent claude-code --copy --yes < /dev/null

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📦 suggestion (blocking): Could the token live in its own step? At step scope, GH_TOKEN reaches npx --yes skills@1, a third-party CLI that reads GH_TOKEN, so it now runs with a write token the old step never had.

Suggested change
- name: Update the skills in each skills-lock.json to the latest release
id: skills
env:
GH_TOKEN: ${{ github.token }}
run: |
tag="$(gh release view --repo slackapi/slack-skills-plugin --json tagName --jq .tagName)"
echo "tag=$tag" >> "$GITHUB_OUTPUT"
while IFS= read -r lock; do
(
cd "$(dirname "$lock")"
npx --yes skills@1 add slackapi/slack-skills-plugin --skill '*' --agent universal --agent claude-code --copy --yes < /dev/null
npx --yes skills@1 add "slackapi/slack-skills-plugin#$tag" --skill '*' --agent universal --agent claude-code --copy --yes < /dev/null
- name: Find the latest skills plugin release
id: skills
env:
GH_TOKEN: ${{ github.token }}
run: |
tag="$(gh release view --repo slackapi/slack-skills-plugin --json tagName --jq .tagName)"
echo "tag=$tag" >> "$GITHUB_OUTPUT"
- name: Update the skills in each skills-lock.json to the latest release
env:
TAG: ${{ steps.skills.outputs.tag }}
run: |
while IFS= read -r lock; do
(
cd "$(dirname "$lock")"
npx --yes skills@1 add "slackapi/slack-skills-plugin#$TAG" --skill '*' --agent universal --agent claude-code --copy --yes < /dev/null

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to its own step in commit 5e769b8, so the skills CLI no longer gets the token. Great catch! 🙇

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Confirmed in 5e769b8: GH_TOKEN now sits only on the release lookup step, and the skills CLI step gets just TAG. Ran the update with no token at the head: it resolved v1.9.0 and the lock-only gate opened no PR. Thanks!

@mwbrooks

Copy link
Copy Markdown
Member Author

Thanks @WilliamBergamin for the careful review! 🙇 The token now lives in its own step in 5e769b8. Would you mind a refresh review when you have a moment?

@WilliamBergamin WilliamBergamin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 Thanks @mwbrooks! Moving the release lookup into its own step keeps the write token away from the skills CLI, and a no-op release still opens no PR.
Nothing else from me 🚀

@mwbrooks

Copy link
Copy Markdown
Member Author

Thanks @WilliamBergamin for the review! 🙇

@mwbrooks
mwbrooks merged commit 2adaa34 into main Nov 30, 2026
2 checks passed
@mwbrooks
mwbrooks deleted the mwbrooks-agent-skills-release-tag branch November 30, 2026 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants